import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UserBindRoleDto {
  @ApiProperty({ required: true, description: '用户ID' })
  @IsNotEmpty({ message: '需要绑定的用户不能为空' })
  userId: string;

  @ApiProperty({ required: true, description: '角色ID' })
  @IsNotEmpty({ message: '角色不能为空' })
  roleId: string;
}
